* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#register {
  display: none;
}

#login, #register {
  position: fixed;
  left: 50%;
  top: 300px;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  padding: 0 80px;
  background-color: rgba(255, 255, 255, .7);
  cursor: default;
}

#login form, #register form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#login form h2, #register form h2 {
  margin: 20px 0;
  font-size: 30px;
  color: purple;
}

#login form div, #register form div {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

#login form input, #register form input {
  flex: 1;
  width: 300px;
  height: 40px;
  padding-left: 10px;
  outline: none;
  /* margin-bottom: 30px; */
  border: none;
}


#login form .iconfont:nth-of-type(1), #register form .iconfont:nth-of-type(1) {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background-color: purple;
}

#login form .iconfont:nth-of-type(2), #register form .iconfont:nth-of-type(2) {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  border-radius: 50%;
  margin-left: 10px;
}

#login form .iconfont.icon-duihao, #register form .iconfont.icon-duihao {
  background-color: green;
}

#login form .iconfont.icon-chahao, #register form .iconfont.icon-chahao {
  background-color: red;
}


#login form .btns, #register form .btns {
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

#login form a, #register form a {
  margin-left: 20px;
  padding: 10px 20px;
  text-decoration: none;
  background-color: purple;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

#login form .register,
#register form .register {
  color: purple;
  background-color: transparent;
}


#login #owl-login, #register #owl-login {
  width: 211px;
  height: 108px;
  background-image: url("../img/owl-login.png");
  position: absolute;
  top: -100px;
  left: 50%;
  margin-left: -111px;
}

@media all and (-webkit-min-device-pixel-ratio:1.5), (min--moz-device-pixel-ratio:1.5), (-o-min-device-pixel-ratio:1.5/1), (min-device-pixel-ratio:1.5), (min-resolution:138dpi), (min-resolution:1.5dppx) {
  #login #owl-login, #register #owl-login {
    background-image: url("../img/owl-login@2x.png");
    -webkit-background-size: 211px 108px;
    -moz-background-size: 211px 108px;
    background-size: 211px 108px;
  }
}

#login #owl-login .hand, #register #owl-login .hand {
  width: 34px;
  height: 34px;
  -webkit-border-radius: 40px;
  border-radius: 40px;
  background-color: #472d20;
  -webkit-transform: scaleY(0.6);
  -moz-transform: scaleY(0.6);
  -o-transform: scaleY(0.6);
  -ms-transform: scaleY(0.6);
  transform: scaleY(0.6);
  -webkit-transition: 0.3s ease-out;
  -moz-transition: 0.3s ease-out;
  -o-transition: 0.3s ease-out;
  -ms-transition: 0.3s ease-out;
  transition: 0.3s ease-out;
  position: absolute;
  left: 14px;
  bottom: -8px;
}

#login #owl-login .hand.hand-r, #register #owl-login .hand.hand-r {
  left: 170px;
}

#login #owl-login.password .hand, #register #owl-login.password .hand {
  -webkit-transform: translateX(42px) translateY(-15px) scale(0.7);
  -moz-transform: translateX(42px) translateY(-15px) scale(0.7);
  -o-transform: translateX(42px) translateY(-15px) scale(0.7);
  -ms-transform: translateX(42px) translateY(-15px) scale(0.7);
  transform: translateX(42px) translateY(-15px) scale(0.7);
}

#login #owl-login.password .hand.hand-r, #register #owl-login.password .hand.hand-r {
  -webkit-transform: translateX(-42px) translateY(-15px) scale(0.7);
  -moz-transform: translateX(-42px) translateY(-15px) scale(0.7);
  -o-transform: translateX(-42px) translateY(-15px) scale(0.7);
  -ms-transform: translateX(-42px) translateY(-15px) scale(0.7);
  transform: translateX(-42px) translateY(-15px) scale(0.7);
}

#login #owl-login .arms, #register #owl-login .arms {
  top: 58px;
  position: absolute;
  width: 100%;
  height: 41px;
  overflow: hidden;
}

#login #owl-login .arms .arm, #register #owl-login .arms .arm {
  width: 40px;
  height: 65px;
  position: absolute;
  left: 20px;
  top: 40px;
  background-image: url("../img/owl-login-arm.png");
  -webkit-transition: 0.3s ease-out;
  -moz-transition: 0.3s ease-out;
  -o-transition: 0.3s ease-out;
  -ms-transition: 0.3s ease-out;
  transition: 0.3s ease-out;
  -webkit-transform: rotate(-20deg);
  -moz-transform: rotate(-20deg);
  -o-transform: rotate(-20deg);
  -ms-transform: rotate(-20deg);
  transform: rotate(-20deg);
}

@media all and (-webkit-min-device-pixel-ratio:1.5), (min--moz-device-pixel-ratio:1.5), (-o-min-device-pixel-ratio:1.5/1), (min-device-pixel-ratio:1.5), (min-resolution:138dpi), (min-resolution:1.5dppx) {
  #login #owl-login .arms .arm, #register #owl-login .arms .arm {
    background-image: url("../img/owl-login-arm@2x.png");
    -webkit-background-size: 40px 65px;
    -moz-background-size: 40px 65px;
    background-size: 40px 65px;
  }
}

#login #owl-login .arms .arm.arm-r, #register #owl-login .arms .arm.arm-r {
  -webkit-transform: rotate(20deg) scaleX(-1);
  -moz-transform: rotate(20deg) scaleX(-1);
  -o-transform: rotate(20deg) scaleX(-1);
  -ms-transform: rotate(20deg) scaleX(-1);
  transform: rotate(20deg) scaleX(-1);
  left: 158px;
}

#login #owl-login.password .arms .arm, #register #owl-login.password .arms .arm {
  -webkit-transform: translateY(-40px) translateX(40px);
  -moz-transform: translateY(-40px) translateX(40px);
  -o-transform: translateY(-40px) translateX(40px);
  -ms-transform: translateY(-40px) translateX(40px);
  transform: translateY(-40px) translateX(40px);
}

#login #owl-login.password .arms .arm.arm-r, #register #owl-login.password .arms .arm.arm-r {
  -webkit-transform: translateY(-40px) translateX(-40px) scaleX(-1);
  -moz-transform: translateY(-40px) translateX(-40px) scaleX(-1);
  -o-transform: translateY(-40px) translateX(-40px) scaleX(-1);
  -ms-transform: translateY(-40px) translateX(-40px) scaleX(-1);
  transform: translateY(-40px) translateX(-40px) scaleX(-1);
}